projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad6da0c
)
GtkStyleContext: Only allow looping transitions for states being turned on.
author
Carlos Garnacho
<carlosg@gnome.org>
Wed, 24 Nov 2010 21:56:53 +0000
(22:56 +0100)
committer
Carlos Garnacho
<carlosg@gnome.org>
Sat, 4 Dec 2010 14:39:43 +0000
(15:39 +0100)
gtk/gtkstylecontext.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstylecontext.c
b/gtk/gtkstylecontext.c
index cbb691a405e92d8dc91c2e6ef3edf13ce08822df..ba72fb7a2767c426fcc01f0618616db0fa94623b 100644
(file)
--- a/
gtk/gtkstylecontext.c
+++ b/
gtk/gtkstylecontext.c
@@
-2653,7
+2653,9
@@
gtk_style_context_notify_state_change (GtkStyleContext *context,
gtk_timeline_set_loop (info->timeline, FALSE);
}
}
- else if (!info)
+ else if (!info &&
+ (!gtk_animation_description_get_loop (desc) ||
+ state_value))
{
info = animation_info_new (context, region_id,
gtk_animation_description_get_duration (desc),